using System;

namespace QLST_DTO
{
    [Serializable]
    public class CT_PHIEUXUAT
    {
        private int maHang;
        private int soPhieu;
        private int soLuong;
        private int donGia;
        private string dVT;
        public CT_PHIEUXUAT()
        { }
        public CT_PHIEUXUAT(int maHang, int soPhieu, int soLuong, int donGia, string dVT)
        {
            this.maHang = maHang;
            this.soPhieu = soPhieu;
            this.soLuong = soLuong;
            this.donGia = donGia;
            this.dVT = dVT;
        }
        public int MaHang
        {
            get { return this.maHang; }
            set
            {
                if (value == null)
                    throw new Exception("maHang not allow nullvalue.");
                this.maHang = value;
            }
        }
        public int SoPhieu
        {
            get { return this.soPhieu; }
            set
            {
                if (value == null)
                    throw new Exception("soPhieu not allow nullvalue.");
                this.soPhieu = value;
            }
        }
        public int SoLuong
        {
            get { return this.soLuong; }
            set { this.soLuong = value; }
        }
        public int DonGia
        {
            get { return this.donGia; }
            set { this.donGia = value; }
        }
        public string DVT
        {
            get { return this.dVT; }
            set { this.dVT = value; }
        }
        public override string ToString()
        {
            return this.maHang + "; " + this.soPhieu + "; " + this.soLuong + "; " + this.donGia + "; " + this.dVT + "; ";
        }

    }
}